{% extends 'layout.html' %}
{% block content %}
    <div class="container">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">{{ title }}</h3>
            </div>
            <div class="panel-body">
                <form method="post" novalidate enctype="multipart/form-data">
                    {% csrf_token %}

                    {% for field in form %}
                        <label for="inputEmail3" class="col-sm control-label"><span class="glyphicon glyphicon-ok"
                                                                                    aria-hidden="true"></span> {{ field.label }}:</label>
                        {{ field }}
                        <p style="color: red"> {{ field.errors.0 }}</p>
                    {% endfor %}
                    <input type="submit" style="margin-top: 20px" class="btn btn-success">
                </form>

            </div>
        </div>
    </div>
{% endblock %}